 function search(){

		document.indexForm.submit();	 
	 }
function trim(val)
 {
	return val.replace(/(\s*$)/g, "");  
}

function checkInfo(){
	if(trim(document.getElementById("tem_name").value)=="")
	{
	  alert("模板名称不能为空！");
	  document.getElementById("tem_name").focus();
	  return false;
	}	 
	if(document.getElementById("cust_class").value==null || trim(document.getElementById("cust_class").value)=="")
	{
	  alert("企业级别不能为空！");
	  document.getElementById("cust_class").focus();
	  return false;
	}	
		
}

function delOneNews(val){
  if(window.confirm('确认删除吗?')){
 	  window.location.href='/doTradeReg.do?pkid='+val+'&bpm_id=1899'; 
  } 		
} 